<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>获取当前的Yaf_Application实例</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yaf-dispatcher.flushinstantly.html">Yaf_Dispatcher::flushInstantly</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="yaf-dispatcher.getinstance.html">Yaf_Dispatcher::getInstance</a></div>
 <div class="up"><a href="class.yaf-dispatcher.html">Yaf_Dispatcher</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="yaf-dispatcher.getapplication" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Yaf_Dispatcher::getApplication</h1>
  <p class="verinfo">(Yaf &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">Yaf_Dispatcher::getApplication</span> &mdash; <span class="dc-title">获取当前的Yaf_Application实例</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yaf-dispatcher.getapplication-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="class.yaf-application.html" class="type Yaf_Application">Yaf_Application</a></span> <span class="methodname"><strong>Yaf_Dispatcher::getApplication</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   Retrive the <a href="class.yaf-application.html" class="classname">Yaf_Application</a> instance. same as
   <span class="methodname"><a href="yaf-application.app.html" class="methodname">Yaf_Application::app()</a></span>.
   获取当前的Yaf_Application实例。跟 <span class="methodname"><a href="yaf-application.app.html" class="methodname">Yaf_Application::app()</a></span> 相同。
  </p>



 </div>


 <div class="refsect1 parameters" id="refsect1-yaf-dispatcher.getapplication-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-yaf-dispatcher.getapplication-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-yaf-dispatcher.getapplication-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member"><span class="methodname"><a href="yaf-application.app.html" class="methodname" rel="rdfs-seeAlso">Yaf_Application::app()</a> - 获取当前的Yaf_Application实例</span></li>
  </ul>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="yaf-dispatcher.flushinstantly.html">Yaf_Dispatcher::flushInstantly</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="yaf-dispatcher.getinstance.html">Yaf_Dispatcher::getInstance</a></div>
 <div class="up"><a href="class.yaf-dispatcher.html">Yaf_Dispatcher</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
